<?php

class MySQL {
	
	var $Host = 'localhost';
	var $Name = 'root';
	var $Pass = '';
	var $Port = '';
	var $Base = 'project';
	
	function __construct() {
		if(!mysql_pconnect($this->Host, $this->Name, $this->Pass)) {
			die("Cannot connect to the database!");
		}
		else {
			if(!mysql_select_db($this->Base)) {
				die("Cannot select the database!");
			}
		}
	}

}

?>
